package com.sky.service;

import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.result.PageResult;
import com.sky.vo.DishVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 柳文迪
 */
public interface DishService {

    void addDish(DishDTO dish);

    PageResult pageSelectDish(DishPageQueryDTO dishPageQueryDTO);

    void deleteDish(List<Integer> ids);

    DishVO selectByIdDish(Integer id);

    List<Dish> list(Integer categoryId);

    void updateStatusDish(@Param("status") Integer status, @Param("id")Integer id);

    void updateDish(DishDTO dishDTO);

    /**
     * 条件查询菜品和口味
     * @param dish
     * @return
     */
    List<DishVO> listWithFlavor(Dish dish);

}
